
package com.gitee.jmash.rbac.mapper;

import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.crenjoy.proto.mapper.BeanMapper;
import com.crenjoy.proto.mapper.ProtoMapper;
import com.gitee.jmash.core.orm.DtoPage;
import com.gitee.jmash.core.orm.DtoTotal;
import com.gitee.jmash.rbac.entity.LogEntity;
import com.gitee.jmash.rbac.entity.LogEntity.LogPk;
import jmash.rbac.protobuf.LogKey;
import jmash.rbac.protobuf.LogModel;
import jmash.rbac.protobuf.LogPage;

/**
 * LogMapper.
 *
 * @author <a href="mailto:service@crenjoy.com">crenjoy</a>
 */
@Mapper
public interface LogMapper extends BeanMapper,ProtoMapper {

  LogMapper INSTANCE = Mappers.getMapper(LogMapper.class);
  

  List<LogModel> listLog(List<LogEntity> list);

  LogPage pageLog(DtoPage<LogEntity, DtoTotal> page);
    
  LogModel model(LogEntity entity);
  
  LogPk pk(LogKey key);  
  
  LogKey key(LogModel model);  

  LogEntity clone(LogEntity entity);
  
  
}
